package com.xmhmyh.generalframework.framework.redis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: 于丁
 * 执行一次redis操作 因为执行第一比较慢，所以事先执行一下
 * @DateTime: 2020/7/24 11:06 上午
 */
@Component
public class RedisTest implements ApplicationRunner {
    @Autowired
    private IredisService iredisService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        iredisService.set("test", "test", 10L);
    }
}
